/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao.inventory;

import dao.BaseDaoHibernate;
import java.util.List;
import model.inventory.Item;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Lalugina
 */
@Repository
public class ItemDao extends BaseDaoHibernate<Item>{

    public List<String> getDivs(String query) {
        return sessionFactory.getCurrentSession().createQuery(query).list();
    }
}